package com.xbongbong.paas.model;

import com.xbongbong.paas.domain.entity.BusinessRuleInfoEntity;
import com.xbongbong.paas.domain.entity.ResultShowRuleEntity;
import com.xbongbong.paas.toolbox.wrap.IModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lrj
 * @date 2021/11/23 14:03
 */

public interface ResultShowRuleModel extends IModel<ResultShowRuleEntity> {

    /**
     * 插入实体
     * @param resultShowRuleEntity
     * @return
     */
    @Override
    Integer insert(ResultShowRuleEntity resultShowRuleEntity);

    /**
     * 更新实体
     * @param resultShowRuleEntity
     * @return
     */
    @Override
    Integer update(ResultShowRuleEntity resultShowRuleEntity);

    /**
     * 根据formId查找规则数据
     * @param formId
     * @param corpid
     * @return
     */
    ResultShowRuleEntity getByFormId(@Param("formId") Long formId, @Param("corpid") String corpid);

    /**
     * 删除业务规则
     * @param formId 表单id
     * @param corpid 公司id
     * @return
     */
    Integer deleteByForm(@Param("formId") Long formId, @Param("corpid") String corpid);

}
